<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>发生错误</title>

    <link href="/ui/pc/css/cross.css" rel="stylesheet"/>
    <link href="/ui/pc/css/change.css" rel="stylesheet"/>
    <link href="/ui/pc/css/style.css" rel="stylesheet"/>
</head>
<body class="gray-bg body-con">

<div class="wrapper wrapper-content animated fadeInRight">
    <div class="page-404">
        <img src="/ui/pc/images/construction.png" alt="">
        <p class="mt-30" data-cont="msg"></p>
        <a href="javascript:" data-btn="reload" class="btn-bg-blue back-btn mt-20">刷新</a>
    </div>
</div>

<script src="/ui/pc/js/jquery.min.js?v=2.1.4"></script>
<script src="/admin/public/util.js"></script>
<script>
    const {msg = "页面出现错误", back} = $.getPageParam();
    $('[data-cont="msg"]').text(msg);
    if (back) {
        history.pushState(null, null, back);
    }

    $('[data-btn="reload"]').on("click", () => {
        if (back) {
            location.href = back;
        } else {
            location.reload();
        }
    });
</script>
</body>
</html>